﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SimplePostQuestion.aspx.cs" Inherits="Web.SimplePostQuestion" %>
<%@ Register TagPrefix="uc1" TagName="TopMenu" Src="TopMenu.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Floor" Src="Floor.ascx" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>试题编辑 | 海淀区学校素质评测管理平台</title>
    <link href="css/style.css" rel="stylesheet" type="text/css" />
    <link href="js/boxy/stylesheets/boxy.css" rel="stylesheet" type="text/css" />
    <link href="js/date_input/date_input.css" rel="stylesheet" type="text/css" />
    <script src="js/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="js/boxy/javascripts/jquery.boxy.js" type="text/javascript"></script>
    <script src="js/module.js" type="text/javascript"></script>
    <script src="js/date_input/jquery.date_input.pack.js" type="text/javascript"></script>
    <script src="js/date_input/Date_Format.js" type="text/javascript"></script>
    <script src="js/jquery.inputlinkselect.js" type="text/javascript"></script>
    <script language="Javascript1.2" type="text/javascript">

function InsertHTML(smileface)
{
var oEditor = FCKeditorAPI.GetInstance('Title');
	if ( oEditor.EditMode == FCK_EDITMODE_WYSIWYG )
	{
		oEditor.InsertHtml(smileface) ;
	}
	else
		alert( '必须在可是编辑状态插入' ) ;
}

</script>
</head>
<body>

    <form id="PostForm" runat="server">

<uc1:TopMenu id='menu1' runat='server'></uc1:TopMenu>
<div id="main">
    <div id="block">
    <h3 id="blocktitle">编辑试题</h3>
    <div id="blockcontent">
    <div class="formdiv">选择科目：&nbsp;<asp:DropDownList 
            ID="SubjectIdList" runat="server" TabIndex="101" >
            </asp:DropDownList><asp:TextBox ID="SubjectId" runat="server" TabIndex="1"></asp:TextBox></div>
    <div class="formdiv">
        试题类型：&nbsp;<asp:DropDownList 
            ID="QuesTypeIdList" runat="server" TabIndex="101" >
            </asp:DropDownList>
        <asp:TextBox ID="QuesTypeId" runat="server" TabIndex="3"></asp:TextBox>
    </div>
    </div>
    <div id="blocktitle"><h3>题目内容</h3><em>[<a href="javascript:ShowIframe('SelectPic.aspx','插入图片',600,455);">插入图片</a>]</em></div>
    <div id="blockcontent">
        <FCKeditorV2:FCKeditor ID="Title" runat="server" Width="99%" Height="400px" 
            BasePath="fckeditor/" ImageBrowserURL="#" ToolbarSet="MySelfDefine">
        </FCKeditorV2:FCKeditor>
    </div>
    <h3 id="blocktitle">参考答案</h3>
                <div id="blockcontent">
        <FCKeditorV2:FCKeditor ID="AnswerNew" runat="server" Width="99%" Height="200px" 
                        BasePath="fckeditor/" ImageBrowserURL="#" ToolbarSet="MySelfDefine">
        </FCKeditorV2:FCKeditor>
    </div>
    
    <div id="blockfloor" style="text-align:center;">
        <asp:Button ID="Button1" runat="server" Text="保存" onclick="Button1_Click" /></div>
    </div>
</div>
<script type="text/javascript" language="javascript">
$("#QuesTypeIdList").change(function(){$("#QuesTypeId").val($("#QuesTypeIdList").val())});
$("#SubjectIdList").change(function(){$("#SubjectId").val($("#SubjectIdList").val())});
$("#QuesTypeId").LinkPageSelect({ obj: "#QuesTypeIdList" });
$("#SubjectId").LinkPageSelect({ obj: "#SubjectIdList" });
</script>

<uc1:Floor id='Floor1' runat='server'></uc1:Floor>
    </form>
</body>
</html>
